import { Injectable } from '@nestjs/common';
import { PermissionDao as Dao } from '@/servers/daos/user/permission.dao';

@Injectable()
export class PermissionService {

    constructor(
        private dao:Dao
    ) { }

    /**
     * 查询所有
     */
    findAll(params: any): Promise<any> {
        return this.dao.findAll(params);
    }

    /**
     * 添加
     */
    add(params: any): Promise<any> {
        return this.dao.add(params);
    }

    /**
     * 修改
     * @param params 
     */
    async update(params: any): Promise<any> {
        return this.dao.update(params);
    }

    /**
     * 删除
     * @param params 
     */
    async delete(params: any): Promise<any> {
        return this.dao.delete(params);
    }
}
